package com.chengjue.dao;

import com.chengjue.model.UserModel;
import org.apache.ibatis.annotations.Param;

public interface UserModelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserModel record);

    int insertSelective(UserModel record);

    UserModel selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserModel record);

    int updateByPrimaryKey(UserModel record);

    int checkPhone(String phone);

    int ceckUserName(String username);

    UserModel selectLogin(@Param("username") String username, @Param("password") String passWord);

    int checkPassWord(@Param("id") Long id, @Param("old") String s);

    int updatePassWord(@Param("id") Long id, @Param("password") String newPassWord);
}